function Huiwen (str)
    if string.reverse(str) == str then return true
    else return false 
    end
end

local str = io.read()
print(Huiwen(str))